#ifndef _BUOLA_CV_BARCODE_SCAN_H_
#define _BUOLA_CV_BARCODE_SCAN_H_

#include <buola/buola.h>

namespace buola { namespace cvi { namespace barcode {

static const int cFixedExp=5;
static const int cRound=(1<<(cFixedExp-1));

static const double cThreshInitWeight=0.44;
static const int cThreshInit=(cThreshInitWeight*(1<<(cFixedExp+1))+1)/2;

static const int cThreshFade=8;

static const double cEWMAWeight=0.78;
static const int cEWMA=(cEWMAWeight*(1<<(cFixedExp+1))+1)/2;

void scan_line(const uint8_t *pData,int pInc,int pCount,std::vector<int> &pWidths);
    
/*namespace barcode*/ } /*namespace cvi*/ } /*namespace buola*/ }

#endif
